package com.yc.fresh.bean;

import java.util.Objects;

/**
 * 订单类
 * @Auther: HuYang
 * @Date: 2022/11/28 - 11 - 28 - 21:55
 * @Description: com.yc.fresh.bean
 * @version: 1.0
 */
public class OrderInfo {
    private String ono;
    private Long mno;
    private String odate;
    private String name;
    private String tel;
    private String province;
    private String city;
    private String area;
    private String addr;
    private String sdate;
    private String edate;
    private Double totalPrice;
    private Integer invoice;
    private Integer status;

    @Override
    public String toString() {
        return "OrderInfo{" +
                "ono='" + ono + '\'' +
                ", mno=" + mno +
                ", odate='" + odate + '\'' +
                ", name='" + name + '\'' +
                ", tel='" + tel + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", area='" + area + '\'' +
                ", addr='" + addr + '\'' +
                ", sdate='" + sdate + '\'' +
                ", edate='" + edate + '\'' +
                ", totalPrice=" + totalPrice +
                ", invoice=" + invoice +
                ", status=" + status +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof OrderInfo)) return false;
        OrderInfo orderInfo = (OrderInfo) o;
        return Objects.equals(ono, orderInfo.ono) && Objects.equals(mno, orderInfo.mno) && Objects.equals(odate, orderInfo.odate) && Objects.equals(name, orderInfo.name) && Objects.equals(tel, orderInfo.tel) && Objects.equals(province, orderInfo.province) && Objects.equals(city, orderInfo.city) && Objects.equals(area, orderInfo.area) && Objects.equals(addr, orderInfo.addr) && Objects.equals(sdate, orderInfo.sdate) && Objects.equals(edate, orderInfo.edate) && Objects.equals(totalPrice, orderInfo.totalPrice) && Objects.equals(invoice, orderInfo.invoice) && Objects.equals(status, orderInfo.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(ono, mno, odate, name, tel, province, city, area, addr, sdate, edate, totalPrice, invoice, status);
    }

    public String getOno() {
        return ono;
    }

    public void setOno(String ono) {
        this.ono = ono;
    }

    public Long getMno() {
        return mno;
    }

    public void setMno(Long mno) {
        this.mno = mno;
    }

    public String getOdate() {
        return odate;
    }

    public void setOdate(String odate) {
        this.odate = odate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getSdate() {
        return sdate;
    }

    public void setSdate(String sdate) {
        this.sdate = sdate;
    }

    public String getEdate() {
        return edate;
    }

    public void setEdate(String edate) {
        this.edate = edate;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Integer getInvoice() {
        return invoice;
    }

    public void setInvoice(Integer invoice) {
        this.invoice = invoice;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
